import { defHttp } from '@/utils/http/axios'

// 查询出金业务明细列表
export function getReport12Page(params) {
  return defHttp.get({ url: '/fy/report12/page', params })
}

// 查询出金业务明细详情
export function getReport12(id: number) {
  return defHttp.get({ url: `/fy/report12/get?id=${id}` })
}

// 新增出金业务明细
export function createReport12(data) {
  return defHttp.post({ url: '/fy/report12/create', data })
}

// 修改出金业务明细
export function updateReport12(data) {
  return defHttp.put({ url: '/fy/report12/update', data })
}

// 删除出金业务明细
export function deleteReport12(id: number) {
  return defHttp.delete({ url: `/fy/report12/delete?id=${id}` })
}

// 导出出金业务明细 Excel
export function exportReport12(params) {
  return defHttp.download({ url: '/fy/report12/export-excel', params }, '出金业务明细.xls')
}